package com.wanyang.service;

import com.wanyang.bo.MemberBO;

public class UserContext {
    private static final ThreadLocal<MemberBO> threadLocal = new ThreadLocal<>();

    public static void set(MemberBO memberBO) {
        threadLocal.set(memberBO);
    }

    public static MemberBO get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }

}
